package cn.com.duiba.millionaire.center.biz.service;

import cn.com.duiba.millionaire.center.api.cache.UserStatus;
import cn.com.duiba.millionaire.center.api.msg.SubmitAnswerMsg;

import java.util.Map;
import java.util.Set;

/**
 * 用户状态查询接口，纯查缓存
 * Created by zzy on 2018/1/22.
 */
public interface UserStatusInfoService {
    /**
     * 批量查询用户在分会场的状态信息
     *
     * @return
     */
    Map<Long, Map<Long, UserStatus>> batchFind(Map<Long, Set<Long>> mappedCids);

    /**
     * 用户标记失败
     *
     * @param mappedCids
     */
    void markFail(Map<Long, Set<Long>> mappedCids);

    /**
     * 消费复活卡
     *
     * @param mappedMsg
     */
    void consumeRenascenceCard(Map<Long, Set<SubmitAnswerMsg>> mappedMsg);

}
